<extend name="Public/base"/>
<block name="body">
    <form class="well form-inline " method="get" action="{:U('')}">

        <div class="form-group">


            <select class="input-large plus"  name="shop_id" >

                <option value="">请选择</option>

                <volist name=":F('Shop')" id="vo"  >

                    <php>$clecked=($vo[id]==I('get.shop_id'))?'selected':'';</php>


                    <option value="{$vo.id}" {$clecked}>{$vo.name}</option>

                </volist>
            </select>


            <input type="hidden" name="status" value="{$status}">


            下单时间:

            <input type="text" name="starttime" value="{:I('get.starttime')}" class="J_datetime input-sm" placeholder=""> -
            <input type="text" name="endtime" value="{:I('get.endtime')}" class="J_datetime input-sm" placeholder="">


            <select class="input-large plus" name="shuser">

                <option value="">请选择送货员</option>

                <volist name=":F('Var_Shuser')" id="vo">

                    <php>$clecked=($vo[name]==I('get.shuser'))?'selected':'';</php>
                    <option value="{$vo.name}" {$clecked}>{$vo.name}</option>

                </volist>
            </select>


        </div>
        <div class="form-group">
            <button class="btn btn-xs btn-info" data-toggle="tooltip" title="搜索">
                <i class="icon-search bigger-110"></i>


            </button>

            <a data-toggle="tooltip" title="清除搜索项" href="{:U(index)}" class="tooltip-danger btn btn-xs btn-danger"><i
                    class="icon-remove bigger-110"></i></a>
        </div>

    </form>



<form class="J_ajaxForm" action="{:U('chuli')}" method="post">
    <div class="table_list">
        <table class="table table-striped table-bordered table-hover table-responsive" >
            <thead>
            <tr>

                <th width="16"><label><input type="checkbox" class="check-all"></label></th>

                <th width="50">编号</th>
                <th>送货员</th>
                <th>提货站</th>
            </tr>
            </thead>
            <tbody>

            <foreach name="list" item="vo">
                <tr>
                    <td><input type="checkbox" class="ids"  name="ids[]" value="{$vo.id}" ></td>
                    <td>{$vo.bh}</td>
                    <td>{$vo.shuser}</td>
                    <td>{$vo.shop_id|get_shop_name}</td>


                </tr>
            </foreach>
            </tbody>
        </table>
    </div>



    <div class=" form-actions pt10 pb10 mb2 mt10 clearfix">


        <div class="pull-left">
        <button class="btn btn-xs btn-success ajax-post  confirm" data-subcheck="1" url="{:U('delete')}" target-form="J_ajaxForm" type="submit">
            打印单据
        </button>

            <button class="btn btn-xs btn-purple ajax-post  confirm" data-subcheck="1" url="{:U('delete')}" target-form="J_ajaxForm" type="submit">
                确认收货
            </button>
        </div>
    </div>

  </form>


</block>


<block name="script">

        </block>